package mysql

import (
	"cloud_note/model"
	"fmt"
)

//var user *model.User

// 根据用户名获取用户
func GetUserByName(name string, user model.User) {
	fmt.Println("str11: ", name)
	db.Where("username = ?", name).Find(&user)
}
